package cn.sjxy.doctorms.mapper;

import cn.sjxy.doctorms.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface UserMapper {
    @Select("select * from t_user where username=#{username}")
    User findByUsername(String username);

    @Insert("insert into t_user(username,password) values(#{username},#{password})")
    void add(String username, String password);
}
